package com.kelvin.oocl.pojo;

import java.io.Serializable;
import java.util.Date;

public class Book implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String bookName;
	private Date publishTime;
	private String author;
	private boolean newBook;
	private double price;
	private String press;
	
	public Book() {
	}
	
	public Book(Integer id, String bookName, Date publishTime, String author,
			boolean newBook, double price, String press) {
		super();
		this.id = id;
		this.bookName = bookName;
		this.publishTime = publishTime;
		this.author = author;
		this.newBook = newBook;
		this.price = price;
		this.press = press;
	}

	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	public Date getPublishTime() {
		return publishTime;
	}
	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public boolean isNewBook() {
		return newBook;
	}
	public void setNewBook(boolean newBook) {
		this.newBook = newBook;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getPress() {
		return press;
	}
	public void setPress(String press) {
		this.press = press;
	}

	@Override
	public String toString() {
		return "Book [id=" + id + ", bookName=" + bookName + ", publishTime="
				+ publishTime + ", author=" + author + ", newBook=" + newBook
				+ ", price=" + price + ", press=" + press + "]";
	}
	
}
